<?php
	$sql = $_POST['sql'];
	$sql = strtolower($sql);
	echo "<div class='contoh'>";
		echo "<div>Contoh Query : </div>";
		echo "<div class='font' style='margin-top: 5px;'>";
			
				switch ($sql) {
					case 'select':
						echo "SELECT <span class='biru'>Kolom_Output</span> FROM <span class='biru'>Nama_Tabel</span> WHERE <span class='biru'>Kolom_Parameter Operator</span> '<span class='biru'>Isian_Parameter</span>';";
						break;
					
					case 'insert':
						echo "INSERT INTO <span class='biru'>Nama_Tabel</span> (<span class='biru'>Kolom_Output1, Kolom_Output2, ...</span>) VALUES (<span class='biru'>Isian_Output1, Isian_Output2, ...</span>);";
						break;

					case 'update':
						echo "UPDATE <span class='biru'>Nama_Tabel</span> SET <span class='biru'>Kolom_Output1</span> = '<span class='biru'>Isian_Output1</span>', <span class='biru'>Kolom_Output2</span> = '<span class='biru'>Isian_Output2</span>', ... WHERE <span class='biru'>Kolom_Parameter Operator</span> '<span class='biru'>Isian_Parameter</span>';";
						break;

					case 'delete':
						echo "DELETE FROM <span class='biru'>Nama_Tabel</span> WHERE <span class='biru'>Kolom_Parameter Operator</span> '<span class='biru'>Isian_Parameter</span>';";
						break;
				}

		echo "</div>";
	echo "</div>";
?>